; * lisp/subr.el (if-let, and-let*): Tweak doc strings. (Bug#69108)
authorMichael Heerdegen <michael_heerdegen@web.de>
Sun, 18 Feb 2024 01:27:56 +0000 (02:27 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sun, 25 Feb 2024 07:40:21 +0000 (09:40 +0200)
lisp/subr.el

index 301e2e4256633adb7ee8ad0197ccd435263e69cf..e22791702970072fe784a100ff6f6d2046c0f992 100644 (file)
@@ -2622,7 +2622,7 @@ This is like `when-let' but doesn't handle a VARLIST of the form
 (defmacro and-let* (varlist &rest body)
   "Bind variables according to VARLIST and conditionally evaluate BODY.
 Like `when-let*', except if BODY is empty and all the bindings
-are non-nil, then the result is non-nil."
+are non-nil, then the result is the value of the last binding."
   (declare (indent 1) (debug if-let*))
   (let (res)
     (if varlist
@@ -2635,7 +2635,8 @@ are non-nil, then the result is non-nil."
   "Bind variables according to SPEC and evaluate THEN or ELSE.
 Evaluate each binding in turn, as in `let*', stopping if a
 binding value is nil.  If all are non-nil return the value of
-THEN, otherwise the last form in ELSE.
+THEN, otherwise the value of the last form in ELSE, or nil if
+there are none.
 
 Each element of SPEC is a list (SYMBOL VALUEFORM) that binds
 SYMBOL to the value of VALUEFORM.  An element can additionally be